void rotate(int** matrix, int matrixSize, int* matrixColSize)
{
        int matrix_new[matrixSize][matrixSize];
    for (int i = 0; i < matrixSize; i++)
    {
        for (int j = 0; j < matrixSize; j++)
        {
            matrix_new[i][j] = matrix[i][j];
        }
    }
    for (int i = 0; i < matrixSize; ++i)
    {
        for (int j = 0; j < matrixSize; ++j)
        {
            matrix[j][matrixSize - i - 1] = matrix_new[i][j];
        }
    }   
}